package com.how2java.test;

import com.how2java.autowire.Zoo;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    private static Log log= LogFactory.getLog(Main.class);
    public static void main(String args[]){
        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        Zoo zoo = ctx.getBean("zoo",Zoo.class);
        log.info(zoo.toString());
    }

}
